import { request } from '@/utils';

export function getAliPay<T = any>(data: {
  subject: string;
  totalAmount: number;
  body: any;
  isMobile: boolean;
}) {
  return request<T>({
    url: '/user/alipay',
    method: 'get',
    params: data
  });
}

export function getPayResult<T = any>(outTradeNo: string) {
  return request<T>({
    url: '/sys/pay/result',
    method: 'get',
    params: {
      out_trade_no: outTradeNo
    }
  });
}
